package br.com.sigad.servico;

import java.sql.Connection;
import java.sql.SQLException;

public class Service {
		
	protected void fecharConexao(Connection conn) throws RuntimeException{
		
		if(conn!=null){
			
			try {
				conn.rollback();
			} catch (SQLException e) {
				
			}finally{
				try{
					conn.close();
				} catch (SQLException e) {
					throw new RuntimeException(e);
				}
			}
		}
	}
}
